<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div class="loading"></div>
    <style>
        .loading{
            width:15px;height: 15px;
            position: absolute;top: 50%;left:50%;
            transform: rotate(30deg);
        }
        .loading::after{
            content:"";
            width: 15px;height: 15px;
            position: absolute;
            box-shadow: 
            15px 15px orange,
            -15px -15px blueviolet;
            border-radius: 15px;
            transform:translate(-50%,-50%)
        }
        .loading::before{
            content:"";
            width: 15px;height: 15px;
            position: absolute;
            box-shadow: 
            15px 15px teal,
            -15px -15px blue;
            transform:translate(-50%,-50%) rotate(90deg);
            border-radius: 15px;
        }
        .loading::after,.loading::before{
            animation: loading 1.5s infinite linear;
        }
        @keyframes loading {
            50%{
                height: 45px;
            }
        }
    </style>
</body>
</html>